package com.zsrt.java.day20161226.xww.demo3.demo3;

import java.util.Scanner;

public class CompareMax {

	public static void demo3(int a,int b) {
		
		boolean result = a > b;
		if (result) {
			System.out.println("最大值MAX:" + a);
		} else {
			System.out.println("最大值MAX:" + b);
		}

	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入第一个数a:");
		int a = sc.nextInt();
		System.out.println("请输入第二个数b");
		int b = sc.nextInt();
		demo3(a,b);
		sc.close();
	}
}
